package org.example.seata.bs.api.constant.order;

import lombok.Getter;

/**
 * 订单状态
 *
 * @author hzq
 * @date 2021/11/18 11:31
 */
@Getter
public enum OrderStatusEnum {


    CREATE_ORDER(0, "创建订单 --> 待支付"),

    ORDER_PAY_SUCCESS(1, "订单支付成功 --> 待发货"),

    CANCEL_ORDER(-1, "订单过期 --> 自动取消");

    /**
     * 订单状态
     */
    private Integer status;

    /**
     * 状态描述
     */
    private String description;

    OrderStatusEnum(Integer status, String description) {
        this.status = status;
        this.description = description;
    }
}
